<?php

namespace app\manage\validate;

use app\common\validate\BaseValidate;

class Login extends BaseValidate
{
    protected $rule = [
        'username' => 'require',
        'password' => 'require',
        'captcha' => 'require'
    ];

    protected $message = [
        'username.require' => '账号不能为空',
        'password.require' => '密码不能为空',
        'captcha.require' => '验证码不能为空'
    ];

    protected $scene = [
        'login' => ['username', 'password', 'captcha',],
    ];
}